<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>小程序商品信息管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../assets/layui/layui-v2.5.4/css/layui.css"  media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<style>
    #ss{
        background-color: #F2F2F2;
        padding: 5px;
        width: 97.5%;
        margin: 10px auto 0 auto;
        border: solid 1px #E6E6E6;
    }

    .kb{
        margin-top: 20px;
    }
</style>
<script src="../assets/js/jquery-3.4.1.min.js"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js" media="all"></script>
<body>

<div class="layui-row" id="ss">
        <div class="layui-form-item kb">
            <div class="layui-inline">
                <label class="layui-form-label">开始时间:</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="strattime" placeholder="请选择开始时间">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">结束时间:</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="endtime" placeholder="请选择结束时间">
                </div>
                <div class="layui-input-inline">
                    <button id="mh_spell" value="" style="height: 36px;margin-top: 1px;width: 60px" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="mh_spell">搜索</button>
                </div>
            </div>
        </div>
</div>

<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-sm12  ">
            <div class="grid-demo grid-demo-bg1">
                <table class="layui-hide" id="wxSpell_table"  lay-data="{id:'wxSpell_table'}"  lay-filter="wxSpell_table"></table>
            </div>
        </div>
    </div>
</div>
</body>

<script type="text/html" id="toolbar">
  <div class="layui-row">
        <div class="layui-col-xs12">
            <div class="input-group">
                <div class="layui-col-xs6">
                    <button id="addSpell" value="开团" style="height: 35px;margin-top: 1px;" class="layui-btn layui-btn-normal layui-btn-sm"  lay-event="addSpell" >开团</button>
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/html" id="goodsCount">
    <span>【{{d.count}}】</span>
</script>

<script type="text/html" id="cttj">
    <span >【{{d.clouds_num}}】人</span>
</script>

<script type="text/html" id="operations">
    <button id="spellGoods" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="spellGoods">➕产品</button>
    <button class="layui-btn  layui-btn-xs" lay-event="edit">拼团详情</button>
</script>

<script type="text/html" id="state">
    {{#  if(d.state == 0){ }}
    <button type="button" class="layui-btn layui-btn-sm  layui-btn-normal" >待开始</button>
    {{#  } else if(d.state == 1){ }}
    <button  type="button" class="layui-btn layui-btn-sm  layui-btn-danger" >拼团中</button>
    {{#  } else if(d.state == 2){ }}
    <button  type="button" style="background:#F2F2F2 ; color: #C9C9C9" class="layui-btn layui-btn-sm">已结束</button>
    {{#  } }}
</script>


<script src="../assets/layui/layui-v2.5.4/layui.js" charset="utf-8"></script>
<script src="../assets/js/pages-js/wxSpell.js" charset="utf-8"></script>
<script type="text/javascript">
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#strattime'
            ,type: 'datetime'
        });

        laydate.render({
            elem: '#endtime'
            ,type: 'datetime'
        });
    });


</script>
</html>